GdkScreen *screen;
/* bus proxy */
- GtkMountOperationHandler *handler;
+ _GtkMountOperationHandler *handler;
GCancellable *cancellable;
gboolean handler_showing;
GtkMountOperationPrivate);
operation->priv->handler =
- gtk_mount_operation_handler_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
- G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
- "org.gtk.MountOperationHandler",
- "/org/gtk/MountOperationHandler",
- NULL, NULL);
+ _gtk_mount_operation_handler_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
+ G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
+ "org.gtk.MountOperationHandler",
+ "/org/gtk/MountOperationHandler",
+ NULL, NULL);
name_owner = g_dbus_proxy_get_name_owner (G_DBUS_PROXY (operation->priv->handler));
if (!name_owner)
g_clear_object (&operation->priv->handler);
gtk_mount_operation_proxy_finish (GtkMountOperation *op,
GMountOperationResult result)
{
- gtk_mount_operation_handler_call_close (op->priv->handler, NULL, NULL, NULL);
+ _gtk_mount_operation_handler_call_close (op->priv->handler, NULL, NULL, NULL);
op->priv->handler_showing = FALSE;
g_object_notify (G_OBJECT (op), "is-showing");
GAsyncResult *res,
gpointer user_data)
{
- GtkMountOperationHandler *proxy = GTK_MOUNT_OPERATION_HANDLER (source);
+ _GtkMountOperationHandler *proxy = _GTK_MOUNT_OPERATION_HANDLER (source);
GMountOperation *op = user_data;
GMountOperationResult result;
GVariant *result_details;
GVariant *value;
GError *error = NULL;
- if (!gtk_mount_operation_handler_call_ask_password_finish (proxy,
- &result, &result_details, res, &error))
+ if (!_gtk_mount_operation_handler_call_ask_password_finish (proxy,
+ &result,
+ &result_details,
+ res,
+ &error))
{
result = G_MOUNT_OPERATION_ABORTED;
g_warning ("Shell mount operation error: %s\n", error->message);
/* keep a ref to the operation while the handler is showing */
g_object_ref (operation);
- gtk_mount_operation_handler_call_ask_password (operation->priv->handler, id,
- message, "drive-harddisk",
- default_user, default_domain,
- operation->priv->ask_flags, NULL,
- call_password_proxy_cb, operation);
+ _gtk_mount_operation_handler_call_ask_password (operation->priv->handler, id,
+ message, "drive-harddisk",
+ default_user, default_domain,
+ operation->priv->ask_flags, NULL,
+ call_password_proxy_cb, operation);
}
static void
GAsyncResult *res,
gpointer user_data)
{
- GtkMountOperationHandler *proxy = GTK_MOUNT_OPERATION_HANDLER (source);
+ _GtkMountOperationHandler *proxy = _GTK_MOUNT_OPERATION_HANDLER (source);
GMountOperation *op = user_data;
GMountOperationResult result;
GVariant *result_details;
GVariant *value;
GError *error = NULL;
- if (!gtk_mount_operation_handler_call_ask_question_finish (proxy, &result,
- &result_details, res, &error))
+ if (!_gtk_mount_operation_handler_call_ask_question_finish (proxy,
+ &result,
+ &result_details,
+ res,
+ &error))
{
result = G_MOUNT_OPERATION_ABORTED;
g_warning ("Shell mount operation error: %s\n", error->message);
/* keep a ref to the operation while the handler is showing */
g_object_ref (operation);
- gtk_mount_operation_handler_call_ask_question (operation->priv->handler, id,
- message, "drive-harddisk",
- choices, NULL,
- call_question_proxy_cb, operation);
+ _gtk_mount_operation_handler_call_ask_question (operation->priv->handler, id,
+ message, "drive-harddisk",
+ choices, NULL,
+ call_question_proxy_cb, operation);
}
static void
GAsyncResult *res,
gpointer user_data)
{
- GtkMountOperationHandler *proxy = GTK_MOUNT_OPERATION_HANDLER (source);
+ _GtkMountOperationHandler *proxy = _GTK_MOUNT_OPERATION_HANDLER (source);
GMountOperation *op = user_data;
GMountOperationResult result;
GVariant *result_details;
GVariant *value;
GError *error = NULL;
- if (!gtk_mount_operation_handler_call_show_processes_finish (proxy,
- &result, &result_details, res, &error))
+ if (!_gtk_mount_operation_handler_call_show_processes_finish (proxy,
+ &result,
+ &result_details,
+ res,
+ &error))
{
result = G_MOUNT_OPERATION_ABORTED;
g_warning ("Shell mount operation error: %s\n", error->message);
/* keep a ref to the operation while the handler is showing */
g_object_ref (operation);
- gtk_mount_operation_handler_call_show_processes (operation->priv->handler, id,
- message, "drive-harddisk",
- g_variant_new_fixed_array (G_VARIANT_TYPE_INT32,
- processes->data, processes->len,
- sizeof (GPid)),
- choices, NULL,
- call_processes_proxy_cb, operation);
+ _gtk_mount_operation_handler_call_show_processes (operation->priv->handler, id,
+ message, "drive-harddisk",
+ g_variant_new_fixed_array (G_VARIANT_TYPE_INT32,
+ processes->data, processes->len,
+ sizeof (GPid)),
+ choices, NULL,
+ call_processes_proxy_cb, operation);
}
static void
if (priv->handler != NULL)
{
- gtk_mount_operation_handler_call_close (priv->handler, NULL, NULL, NULL);
+ _gtk_mount_operation_handler_call_close (priv->handler, NULL, NULL, NULL);
priv->handler_showing = FALSE;
g_object_notify (G_OBJECT (op), "is-showing");